<?php


namespace app\common\model;


class PaymentLog extends BaseModel{
    public function user(){
        return $this->belongsTo('User','user_id','id')->field('id,nickname,avatar,level,education');
    }

    public function family(){
        return $this->belongsTo('FamilyTree','f_id','id')->field('id,name,end_time');
    }
}